package com.ruoyi.project.remake.mapper;

import java.util.List;
import java.util.Map;

import com.ruoyi.project.remake.domain.TRemakeCaseDetails;
import com.ruoyi.project.remake.domain.query.PrintDetailsQuery;
import com.ruoyi.project.remake.domain.query.ReportQuery;
import com.ruoyi.project.remake.domain.vo.PrintDetailsVo;
import com.ruoyi.project.remake.domain.vo.ReprotVo;
import org.apache.ibatis.annotations.Param;

/**
 * 翻拍病例详情Mapper接口
 *
 * @author 孙山伟
 * @date 2020-12-15
 */
public interface TRemakeCaseDetailsMapper
{
    /**
     * 查询翻拍病例详情
     *
     * @param id 翻拍病例详情ID
     * @return 翻拍病例详情
     */
    public TRemakeCaseDetails selectTRemakeCaseDetailsById(Long id);

    /**
     * 查询翻拍病例详情列表
     *
     * @param tRemakeCaseDetails 翻拍病例详情
     * @return 翻拍病例详情集合
     */
    public List<TRemakeCaseDetails> selectTRemakeCaseDetailsList(TRemakeCaseDetails tRemakeCaseDetails);

    /**
     * 新增翻拍病例详情
     *
     * @param tRemakeCaseDetails 翻拍病例详情
     * @return 结果
     */
    public int insertTRemakeCaseDetails(TRemakeCaseDetails tRemakeCaseDetails);

    /**
     * 修改翻拍病例详情
     *
     * @param tRemakeCaseDetails 翻拍病例详情
     * @return 结果
     */
    public int updateTRemakeCaseDetails(TRemakeCaseDetails tRemakeCaseDetails);

    /**
     * 删除翻拍病例详情
     *
     * @param id 翻拍病例详情ID
     * @return 结果
     */
    public int deleteTRemakeCaseDetailsById(Long id);
    /**
     * 删除翻拍病例详情
     *
     * @param tRemakeCaseDetails 翻拍病例详情
     * @return 结果
     */
    public int deleteByClassType(TRemakeCaseDetails tRemakeCaseDetails);

    /**
     * 批量删除翻拍病例详情
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteTRemakeCaseDetailsByIds(Long[] ids);

    List<TRemakeCaseDetails> selectNeedInter(TRemakeCaseDetails tRemakeCaseDetails);


    List<ReprotVo> selectReport(ReportQuery reportQuery);

    List<ReprotVo> selectReportDetails(ReportQuery reportQuery);

    Integer selectMaxXh(@Param("caseMainId")Long caseMainId,@Param("type") String type);

    void saveBath(List<TRemakeCaseDetails> insertAll);

    /**
     * 查询翻拍病例详情列表
     *
     * @param tRemakeCaseDetails 翻拍病例详情
     * @return 翻拍病例详情集合
     */
    public List<TRemakeCaseDetails> selectNewDetailsList(TRemakeCaseDetails tRemakeCaseDetails);

    /**
     * 根据病例id得到该病例下每一个分类的数量列表
     * @param query
     * @return
     */
    List<PrintDetailsVo> selectCopyList(PrintDetailsQuery query);
}
